# id,email,id_number,name="","","",""
# id_element_list = ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
#                          'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'
#                          '1','2','3','4','5','6','7','8','9','_')
id=input("请输入ID:")
# email=eval(input("请输入email地址:"))
# id_number=eval(input("请输入身份证号码:"))
# name=eval(input("请输入姓名:"))

def checkID(id):
    while True:
        try:
            if len(id)>8:
                print("ID长度不能大于8个字符\n")
            else:
                for i in id:
                    if ord(i) not in 48 <= ord(i) <= 57 or 64 <= ord(i) <= 90 or 97 <= ord(i) <= 122 or ord(i) == 95:
                        print("用户名只能包含数字、大写字母、小写字母、下划线\n")
                    else:
                        print("id输入正确")
                break
        except :
            id = eval(input("请重新输入ID:\n"))
            continue

    print("id输入正确")

def checkemaii(EMAIL):
    if EMAIL.count('@')>0 and EMAIL.count('.')>0:
        print()
    else:
        print("EMAIL不符合基本格式")
def checkid(id_number):
    if len(id_number)==18:
        print()
    else:
        print("身份证不符合基本格式")
def checkname(name):
    if len(name)>4:
        print('长度不能超过4位')
        return False
    for c in name:
        if not ('\u4e00' <= c <= '\u9fa5'):
            return False
    print('姓名输入符合格式')
    return True